package com.jc.service.gameuser;

import java.util.List;

import org.apache.commons.collections4.CollectionUtils;
import org.springframework.stereotype.Service;

import com.jc.cds.model.CustomGameUser;
import com.jc.ds.base.service.BaseServiceImpl;
import com.jc.ds.mapper.BaseCustomMapper;
import com.jc.ds.model.GameUser;

@Service
public class GameUserServiceImpl extends BaseServiceImpl<GameUser, CustomGameUser, Long> implements GameUserService {

	
	
	@Override
	public BaseCustomMapper<CustomGameUser, Long> getCustomMapper() {
		return null;
	}

	public GameUser queryGameUser(Long out_user_id) {
		GameUser gameuser = new GameUser();
		gameuser.setUserId(out_user_id);
		List<GameUser> list = queryAll(gameuser);
		if(CollectionUtils.isNotEmpty(list)) {
			return list.get(0);
		}else {
			return null;
		}
		
	}
	
	
	
	
	

}
